<?php
define('Copyright', 'Copyright 2019 HK6 All Rights Reserved.');
define('ROOT_PATH', $_SERVER["DOCUMENT_ROOT"].'/');
include_once ROOT_PATH.'/foot/check.php';

$db=new DB();
		$sql = " SELECT `text` FROM cn_news  where main=1  order by id desc ";
		$result = $db->query($sql, 1);
		$newfile="";
		if ($result)
		{
			for ($i=0; $i<count($result); $i++)
			{
				$newfile.=$result[$i]['text']."                ";
				
			}
		}
echo $newfile;
?>
